package com.itboye.zhujia.home;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.itboye.zhujia.R;
import com.itboye.zhujia.base.BaseActivity;
import com.itboye.zhujia.base.MyApplcation;
/**
 * 切换角色
 *
 */
public class ActivitySwitchRoles extends BaseActivity implements OnClickListener{
	private ImageView close_icon;// 返回图片
	private TextView add_shap_title_tv;// 标题
	
	LinearLayout switch_layout01;
	LinearLayout switch_layout02;
	LinearLayout switch_layout03;
	@Override
	public int initView() {
		return 0;
	}

	@Override
	public void onMyCreate() {
		setContentView(R.layout.activity_switch_roles);
		
		add_shap_title_tv.setText("选择房东类型");

	}

	@Override
	public void onClick(View v) {
		Intent intent=null;
		switch (v.getId()) {
		case R.id.close_icon:
			this.finish();
			break;
		case R.id.switch_layout01://我是房东
			intent=new Intent(MyApplcation.ctx, ActivityPersonalLandlord.class);
			startActivity(intent);
			break;
		case R.id.switch_layout02://我是经纪人
			intent=new Intent(MyApplcation.ctx, ActivityAgent.class);
			startActivity(intent);
			break;
		case R.id.switch_layout03://联盟店入驻
			break;

		default:
			break;
		}
		
	}

}
